Script Application Function: First replaces the current list of files selected for optimization with the files dragged to the application. Then performs the optimize files activity using the Selected Files method for selected disk(s) and files. Uses fla…